package cn.wolfcode.plus.service.impl;

import cn.wolfcode.plus.domain.Employee;
import cn.wolfcode.plus.mapper.EmployeeMapper;
import cn.wolfcode.plus.query.QueryObject;
import cn.wolfcode.plus.service.IEmployeeService2;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;


@Service
public class EmployeeService2Impl extends ServiceImpl<EmployeeMapper,Employee> implements IEmployeeService2 {

    @Override
    public Page<Employee> query(QueryObject qo) {
        Page<Employee> page = new Page<>(qo.getCurrentPage(), qo.getPageSize());//设置分页信息
        QueryWrapper<Employee> wrapper = new QueryWrapper<>();
        return super.page(page,wrapper);
    }
}
